const p1 = new Promise((resolve, reject) => {
    resolve();
})

const p2 = new Promise((resolve, reject) => {
    resolve(p1);
})

console.log(p1)
console.log(p2)

//
